/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package app.ernesto.controller;

import app.ernesto.dao.PlanesFacade;
import app.ernesto.modelo.Planes;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author ernesto
 */
@ManagedBean
@RequestScoped
public class PlanesController {
    @EJB
    private PlanesFacade planesFacade;
    
    private Planes planes; 
    
    
   
    public PlanesController() {
    }

    public Planes getPlanes() {
        return planes;
    }

    public void setPlanes(Planes planes) {
        this.planes = planes;
    }
    
    public List<Planes> getList(){
        return planesFacade.findAll();
    }
            
}
